can we remove elements from hashmap while iterating